package com.liankuan.console.service;


import com.liankuan.console.controller.vo.UserInfoVO;
import com.liankuan.console.controller.vo.request.User.UserDtoIO;
import com.liankuan.console.controller.vo.request.User.UserStrategyIO;
import com.liankuan.console.controller.vo.user.UserListVO;
import com.liankuan.console.controller.vo.user.UserStrategyListVO;
import com.liankuan.console.dto.User;

public interface UserService {
    String login(String name, String password);

    UserInfoVO getInfo(String token);

    UserListVO listUsers(Integer currentPage, Integer pageSize);

    void deleteUser(Integer id);

    void updateUser(UserDtoIO userDtoIO);

    void addUser(UserDtoIO userDtoIO);

    void logout(String token);

    User getUserInfoByToken(String token);

    UserStrategyListVO listUsersWithStrategy(Integer currentPage, Integer pageSize, Integer strategyId);

    void updateUserStrategy(UserStrategyIO userStrategyIO);

    boolean getUserInfoByName(String name);

    User findUserById(int userId);

    void updateMyselfInfo(UserDtoIO userDtoIO);
}
